package com.it.learn.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xyx
 * @date 2018-10-16 19:59
 */
@RestController
@RequestMapping("/num")
public class NumController {

	@GetMapping("/add/{a}/{b}")
	public String add(@PathVariable("a") int a, @PathVariable("b") int b) {
		return String.valueOf(a + b);
	}

}
